<?php

/**
 * @description Class autoloader
 *
 * This function sets up the class autoloader so that we do not have to specifically
 * require-in the Application layer classes before creating instances of them.
 *
 * @param string in_class_name The name of the required class
 * @return nothing
 */
function __autoload($class_name)
{
	global $known_classes;
	$real = $class_name.".class.php";
	if (array_key_exists($real,$known_classes)) 
	{
		$fn = $known_classes[$real];
		if (file_exists($fn))
			require_once($fn);
		else
			die("\n<br />could not find $fn");
	}
	return;
}
	
?>